package com.muyu.system.mapper;

import java.util.List;

import com.muyu.common.system.domain.LoginUser;
import com.muyu.system.domain.DanmoShoppingCart;
import com.muyu.system.domain.DanmoShoppingFootprint;
import org.apache.ibatis.annotations.Param;

/**
 * 商品足迹Mapper接口
 * 
 * @author yangle
 * @date 2024-09-29
 */
public interface DanmoShoppingFootprintMapper 
{
    /**
     * 查询商品足迹
     * 
     * @param id 商品足迹主键
     * @return 商品足迹
     */
    public DanmoShoppingFootprint selectDanmoShoppingFootprintById(Long id);

    /**
     * 查询商品足迹列表
     * 
     * @param danmoShoppingFootprint 商品足迹
     * @return 商品足迹集合
     */
    public List<DanmoShoppingFootprint> selectDanmoShoppingFootprintList(DanmoShoppingFootprint danmoShoppingFootprint);

    /**
     * 新增商品足迹
     * 
     * @param danmoShoppingFootprint 商品足迹
     * @return 结果
     */
    public int insertDanmoShoppingFootprint(DanmoShoppingFootprint danmoShoppingFootprint);

    /**
     * 修改商品足迹
     * 
     * @param danmoShoppingFootprint 商品足迹
     * @return 结果
     */
    public int updateDanmoShoppingFootprint(DanmoShoppingFootprint danmoShoppingFootprint);

    /**
     * 删除商品足迹
     * 
     * @param id 商品足迹主键
     * @return 结果
     */
    public int deleteDanmoShoppingFootprintById(Long id);

    /**
     * 批量删除商品足迹
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoShoppingFootprintByIds(Long[] ids);


    /**
     * 批量删除商品足迹
     *
     * @param productId 商品id
     * @return 结果
     */
    DanmoShoppingFootprint selectDanmoShoppingFootprintByUserIdAndProductId(@Param("userId") Long userId, @Param("productId") Long productId);
}
